<?php echo script::add('jquery'), script::add('form'); ?>
<?php echo script::ajax_form('#common_config_box', 'request', 'response'); ?>
<script type="text/javascript">function request(){var site_name=$('#site_name_box').val();if(site_name==''){alert('站点名不能为空!');$('#site_name_box').focus();return fasle;}} function response(data){switch(data){case '101':alert('恭喜！执行成功');location.reload();break;case '100':alert('对不起,程序执行失败,请重新操作');break;}}</script>
<table width="800" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left">>><?php echo $site_name; ?></td>
      </tr>
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="0">
          <?php echo html::form_start($this->get_action_url('ajax_common_submit'), array('name'=>'common_config_box', 'id'=>'common_config_box')); ?>
		  <tr>
            <td width="120" height="30" align="right">站点名称：</td>
            <td align="left"><?php echo html::text(array('name'=>'site_name', 'value'=>$config_data['site_name'], 'id'=>'site_name_box')); ?></td>
          </tr>
          <tr>
            <td width="120" height="30" align="right">站点副标题：</td>
            <td align="left"><?php echo html::text(array('name'=>'site_description', 'value'=>$config_data['site_description'])); ?></td>
          </tr>
          <tr>
            <td width="120" height="30" align="right">关键词：</td>
            <td align="left"><?php echo html::text(array('name'=>'meta_keyword', 'value'=>$config_data['meta_keyword'])); ?></td>
          </tr>
          <tr>
            <td width="120" height="30" align="right">站点描述：</td>
            <td align="left"><?php echo html::text(array('name'=>'meta_description', 'value'=>$config_data['meta_description'])); ?></td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="center"><?php echo html::submit(array('name'=>'submit', 'value'=>'设置', 'id'=>'submit_button')); ?></td>
          </tr>
		  <?php echo html::form_end(); ?>
        </table></td>
      </tr>
</table>